x86: run-time callers of map_pages_to_xen() must check for errors
authorJan Beulich <jbeulich@novell.com>
Wed, 9 Mar 2011 16:15:36 +0000 (16:15 +0000)
committerJan Beulich <jbeulich@novell.com>
Wed, 9 Mar 2011 16:15:36 +0000 (16:15 +0000)
commit0778492204a0a63aa0657a4fe15dd9754ede704b
treef8a8aef45c6197a3251ccb20c35d77b4bc9e48ad
parentbe68c24351805ab7840ba13c6ac89dc1fc3e58f5
x86: run-time callers of map_pages_to_xen() must check for errors

Again, (out-of-memory) errors must not cause hypervisor crashes, and
hence ought to be propagated.

This also adjusts the cache attribute changing loop in
get_page_from_l1e() to not go through an unnecessary iteration. While
this could be considered mere cleanup, it is actually a requirement
for the subsequent now necessary error recovery path.

Also make a few functions static, easing the check for potential
callers needing adjustment.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/mm.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/mm.h